package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookImageAttachDao;
import io.wdb.modules.generator.generator.entity.BookImageAttachEntity;
import io.wdb.modules.generator.generator.service.BookImageAttachService;



@Service("bookImageAttachService")
public class BookImageAttachServiceImpl implements BookImageAttachService {
	@Autowired
	private BookImageAttachDao bookImageAttachDao;
	
	@Override
	public BookImageAttachEntity queryObject(Long id){
		return bookImageAttachDao.queryObject(id);
	}
	
	@Override
	public List<BookImageAttachEntity> queryList(Map<String, Object> map){
		return bookImageAttachDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookImageAttachDao.queryTotal(map);
	}
	
	@Override
	public void save(BookImageAttachEntity bookImageAttach){
		bookImageAttachDao.save(bookImageAttach);
	}
	
	@Override
	public void update(BookImageAttachEntity bookImageAttach){
		bookImageAttachDao.update(bookImageAttach);
	}
	
	@Override
	public void delete(Long id){
		bookImageAttachDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookImageAttachDao.deleteBatch(ids);
	}
	
}
